package com.gujia.concurrent.condition;

import com.gujia.concurrent.reentrant.GetThread;
import com.gujia.concurrent.reentrant.PutThread;
import com.gujia.concurrent.reentrant.Warehouse;

public class ConditionDemo {
    public static void main(String[] args){
        Warehouse house = new WareHouseCondition();

        PutThread put = new PutThread(house);


        GetThread get = new GetThread(house);


        new Thread(put).start();

        get.start();
    }
}
